Skip to content

Implements permissionless TX serving#737

Closed
Lucifer0x17 wants to merge 10 commits intoneo/edgefrom
feat/permissionless-id-fetch
Closed

Implements permissionless TX serving#737
Lucifer0x17 wants to merge 10 commits intoneo/edgefrom
feat/permissionless-id-fetch

Conversation

@Lucifer0x17
Copy link

@Lucifer0x17 Lucifer0x17 commented Mar 6, 2026

Adds an admissibility checking mechanism for Arweave transactions, enabling permissionless data serving when routing requests through HyperBEAM nodes.

  • Introduces is_tx_admissible to verify the integrity of fetched transactions. This function checks the transaction's content hash or commitment IDs against the expected transaction ID.

Make sure to add the following config to start the routing node:

[
    #{
        <<"template">> => <<"^/arweave/tx">>,
        <<"strategy">> => <<"Random">>,
        <<"choose">> => 10,
        <<"parallel">> => true,
        <<"nodes">> => ?ARWEAVE_BOOTSTRAP_CHAIN_NODES
    },
    #{
        <<"template">> => <<"^/arweave">>,
        <<"nodes">> => ?ARWEAVE_BOOTSTRAP_CHAIN_NODES,
        <<"parallel">> => true,
        <<"admissible-status">> => 200
    }
]

Check dev_arweave:is_admissible_real_gateway_test_ for the whole functioning.

@Lucifer0x17 Lucifer0x17 self-assigned this Mar 6, 2026
@Lucifer0x17 Lucifer0x17 added the enhancement New feature or request label Mar 6, 2026
…ed routing

Introduces dev_router_perf.erl, an Erlang execution device for process@1.0 that replaces dynamic-router.lua for Arweave gateway routing. Fixes gaps in the Lua version: supports match/with route format.

Key functionality:
   - register: adds nodes to routes with http_reference for the feedback loop
   - duration: updates node performance via exponential weighted average (EMA)
   - recalculate: recomputes weights using decay-based percentile scoring
   - Supports both match/with and prefix

Registers router-perf@1.0 in hb_opts preloaded_devices.

Comments added in the file by: Claude Opus 4.6 <noreply@anthropic.com>
Add `is_admissible_hook_routed_test_` that validates the full perf-router feedback loop: gateway registration, TX fetch through routed stack, async monitor duration posts, and performance score updates via EMA.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants